package my.edu.model.User.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("role_permission")
@AllArgsConstructor
@NoArgsConstructor
public class RolePermission {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long roleId;

    private Long permissionId;

    public RolePermission(Long roleId, Long permissionId){
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

}